@echo off
set webserver=tools\EasyWebSvr.exe
taskkill /im EasyWebSvr.exe /f
(echo [WebServer]
echo RootDir=%~dp0terrasavr
echo ListenPort=9090
echo MaxThreadNum=100
echo Timeout=5000
echo bAutoRun=0
echo bIconStartStop=0
echo MaxContentLength=16777216
echo MaxHeaderLength=4096
echo [Cgi]
echo EnableCgi=0
echo EnableIsapi=0
echo IsapiCache=1
echo EnablePhp=0
echo [Docs]
echo DefaultHtml=index.htm,index.html,default.htm,index.php
echo EnableDirBrowse=0
echo ShowDirAlways=0
echo [ScriptEngine]
echo [Log]
echo LogToWindow=1
echo LogWndMaxLine=5000
echo LogToFile=0
echo LogFileName=
echo [StartParam]
echo bShowWnd=0
echo bStartRun=1
)>tools\EasyWebSvr.ini
start %webserver%
start explorer "http://127.0.0.1:9090/"
